def testGetCustomerById_1(self): """Existing customer """ customer = self.cm.getCustomerById("c1") self.assertEqual(customer.getId(), "c1") self.failUnless(ICustomer.providedBy(customer))
def testGetAuthenticatedCustomer_2(self): """As member """ self.login("newmember") customer = self.cm.getAuthenticatedCustomer() self.failUnless(ICustomer.providedBy(customer)) self.assertEqual(customer.getId(), "newmember")