Example #1
0
 def test_at_sign(self):
     self.assertEqual(
             split_id('@'),
             ['self']
             )
Example #2
0
 def test_method(self):
     self.assertEqual(
             split_id('a:append'),
             ['method', 'a', 'append']
             )
Example #3
0
 def test_indirect_single(self):
     self.assertEqual(
             split_id('self->next'),
             ['(', '->', 'self', 'next', ')']
             )
Example #4
0
 def test_indirect_double(self):
     self.assertEqual(
             split_id('self->next->data'),
             ['(', '->', 'self', 'next', 'data', ')']
             )
Example #5
0
 def test_at_sign_field(self):
     self.assertEqual(
             split_id('@next'),
             ['(', '->', 'self', 'next', ')']
             )