예제 #1
0
 def test_mod_id_identity_6(self):
     self.assertEqual(('root', 'web', 'foo'),
                      parse_mod_id(pretty_mod_id(('root', 'web', 'foo'))))
예제 #2
0
 def test_mod_id_identity_3(self):
     self.assertEqual('web.foo',
                      pretty_mod_id(parse_mod_id('root.web.foo')))
예제 #3
0
 def test_mod_id_identity_4(self):
     self.assertEqual(('root', ), parse_mod_id(pretty_mod_id(('root', ))))
예제 #4
0
 def test_pretty_mod_id_3(self):
     mod_id = pretty_mod_id(('root', ))
     self.assertEqual('root', mod_id)
예제 #5
0
 def test_mod_id_identity_1(self):
     self.assertEqual('root', pretty_mod_id(parse_mod_id('root')))
예제 #6
0
 def test_mod_id_identity_6(self):
     self.assertEqual(('root', 'web', 'foo'), parse_mod_id(pretty_mod_id(('root', 'web', 'foo'))))
예제 #7
0
 def test_pretty_mod_id_2(self):
     mod_id = pretty_mod_id(('root', 'web', 'foo'))
     self.assertEqual('web.foo', mod_id)
예제 #8
0
 def test_mod_id_identity_4(self):
     self.assertEqual(('root', ), parse_mod_id(pretty_mod_id(('root', ))))
예제 #9
0
 def test_mod_id_identity_3(self):
     self.assertEqual('web.foo', pretty_mod_id(parse_mod_id('root.web.foo')))
예제 #10
0
 def test_mod_id_identity_1(self):
     self.assertEqual('root', pretty_mod_id(parse_mod_id('root')))
예제 #11
0
 def test_pretty_mod_id_3(self):
     mod_id = pretty_mod_id(('root',))
     self.assertEqual('root', mod_id)
예제 #12
0
 def test_pretty_mod_id_2(self):
     mod_id = pretty_mod_id(('root', 'web', 'foo'))
     self.assertEqual('web.foo', mod_id)