def test__set_search_recursive__boolean_value__set_value(self): # Arrange dw = DirWalker() # Act dw.set_search_recursive(False) # Assert self.assertFalse(dw._search_recursive)
def test__set_search_recursive__none_boolean_value__set_true(self): # Arrange dw = DirWalker() val = 'wrong type' # Act dw.set_search_recursive(val) # Assert self.assertTrue(dw._search_recursive)