def test_at_sign(self): self.assertEqual( split_id('@'), ['self'] )
def test_method(self): self.assertEqual( split_id('a:append'), ['method', 'a', 'append'] )
def test_indirect_single(self): self.assertEqual( split_id('self->next'), ['(', '->', 'self', 'next', ')'] )
def test_indirect_double(self): self.assertEqual( split_id('self->next->data'), ['(', '->', 'self', 'next', 'data', ')'] )
def test_at_sign_field(self): self.assertEqual( split_id('@next'), ['(', '->', 'self', 'next', ')'] )