示例#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)