Пример #1
0
 def test_raises_type_error_when_arg_1_is_none(self):
     with self.assertRaises(TypeError):
         linenumber.is_less_indented("", None)
Пример #2
0
 def test_returns_false_when_string_prior_is_less_indented(self):
     self.assertFalse(linenumber.is_less_indented("   a,", " b"))
Пример #3
0
 def test_returns_true_when_string_prior_is_more_indented(self):
     self.assertTrue(linenumber.is_less_indented(" a", "   b"))
Пример #4
0
 def test_returns_false_when_strings_have_equal_indentation(self):
     self.assertFalse(linenumber.is_less_indented("  a", "  b"))