I am writing a unit test case using pytest for a particular function. Upon testing the code coverage it turns out that few statements(nested if-else) are not getting covered