예제 #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)