예제 #1
0
def test_space_indentation(string: str, count: int) -> None:
    """Test for pylint_plugin.ParamDocChecker."""
    assert utils.space_indentation(string) == count
예제 #2
0
def test_space_indentation(string, count):
    """Test for pylint_plugin.ParamDocChecker"""
    assert utils.space_indentation(string) == count
예제 #3
0
 def test_space_indentation(self):
     self.assertEqual(utils.space_indentation('abc'), 0)
     self.assertEqual(utils.space_indentation(''), 0)
     self.assertEqual(utils.space_indentation('  abc'), 2)
     self.assertEqual(utils.space_indentation('\n  abc'), 0)
     self.assertEqual(utils.space_indentation('   \n  abc'), 3)
예제 #4
0
 def test_space_indentation(self):
     self.assertEqual(utils.space_indentation('abc'), 0)
     self.assertEqual(utils.space_indentation(''), 0)
     self.assertEqual(utils.space_indentation('  abc'), 2)
     self.assertEqual(utils.space_indentation('\n  abc'), 0)
     self.assertEqual(utils.space_indentation('   \n  abc'), 3)
예제 #5
0
def test_space_indentation(string, count):
    """Test for pylint_plugin.ParamDocChecker"""
    assert utils.space_indentation(string) == count