Exemplo n.º 1
0
 def test_special_case_object_name(self):
     th = Thrift(None)
     src = "/home/user/foobar/blah/wizecommerce.services.sellerprogramrecord.thrift"
     result = th.get_object_name(src)
     expected = "sellerprogramrecord-client"
     self.failUnlessEqual(expected, result)
Exemplo n.º 2
0
 def test_special_case_object_name(self):
     th = Thrift(None)
     src = "/home/user/foobar/blah/wizecommerce.services.sellerprogramrecord.thrift"
     result = th.get_object_name(src)
     expected = "sellerprogramrecord-client"
     self.failUnlessEqual(expected, result)
Exemplo n.º 3
0
 def test_complex_object_name(self):
     th = Thrift(None)
     src = "/home/user/foobar/blah/wizecommerce.bizobj.search.foobar.sellerprogramrecord.thrift"
     result = th.get_object_name(src)
     expected = "search-foobar-sellerprogramrecord-bizobj"
     self.failUnlessEqual(expected, result)
Exemplo n.º 4
0
 def test_complex_object_name(self):
     th = Thrift(None)
     src = "/home/user/foobar/blah/wizecommerce.bizobj.search.foobar.sellerprogramrecord.thrift"
     result = th.get_object_name(src)
     expected = "search-foobar-sellerprogramrecord-bizobj"
     self.failUnlessEqual(expected, result)