コード例 #1
0
ファイル: namespace_tests.py プロジェクト: eastein/thingsbus
 def test_roots(self):
     self.assertEquals(thing.stringify_ns([]), '')
     self.assertEquals(thing.parse_ns(''), [])
コード例 #2
0
ファイル: namespace_tests.py プロジェクト: eastein/thingsbus
 def test_simple(self):
     self.assertEquals(thing.parse_ns('a'), ['a'])
     self.assertEquals(thing.parse_ns('a.b'), ['a', 'b'])