def test_namelist_to_ListOf_TsIdentities(self): ds = SmGTsRepository(PREPROD) nl = [u'/ICC-test-v9.2', u'/test/b2', u'/test/c2'] r = ds._namelist_to_ListOf_TsIdentities(nl) self.assertEqual(len(nl), r.Count) [(self.assertEqual(nl[i], r[i].Name) and self.assertEqual(0, r[i].Id)) for i in range(len(nl))]
def test_namelist_to_ListOf_TsIdentities(self): ds=SmGTsRepository(PREPROD) nl=[u'/ICC-test-v9.2',u'/test/b2',u'/test/c2'] r=ds._namelist_to_ListOf_TsIdentities(nl) self.assertEqual(len(nl),r.Count) [ (self.assertEqual(nl[i],r[i].Name) and self.assertEqual(0,r[i].Id)) for i in range(len(nl))]