Пример #1
0
 def test_allowable_true(self):
     self.assertEqual(sanitize_identifier.allowable('some_string'), True)
Пример #2
0
 def test_allowable_false_3(self):
     self.assertEqual(sanitize_identifier.allowable('_ipython_display_'),
                      False)
Пример #3
0
 def test_allowable_false_underscore(self):
     self.assertEqual(sanitize_identifier.allowable('_foo', True), False)
Пример #4
0
 def test_allowable_false_1(self):
     self.assertEqual(sanitize_identifier.allowable('trait_names'), False)
Пример #5
0
 def test_allowable_false_2(self):
     self.assertEqual(sanitize_identifier.allowable('_repr_png_'), False)
Пример #6
0
 def test_allowable_true(self):
     self.assertEqual(sanitize_identifier.allowable('some_string'), True)
Пример #7
0
 def test_allowable_false_underscore(self):
     self.assertEqual(sanitize_identifier.allowable('_foo', True), False)
Пример #8
0
 def test_allowable_false_3(self):
     self.assertEqual(sanitize_identifier.allowable('_ipython_display_'),
                      False)
Пример #9
0
 def test_allowable_false_2(self):
     self.assertEqual(sanitize_identifier.allowable('_repr_png_'), False)
Пример #10
0
 def test_allowable_false_1(self):
     self.assertEqual(sanitize_identifier.allowable('trait_names'), False)