Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)