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