コード例 #1
0
    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)
コード例 #2
0
    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)