def testConnectionDoesNotExist(self): """Tests that False is returned if connection does not exist.""" # seed a connection between the org and another profile other_profile = profile_utils.seedNDBProfile(self.program.key()) connection_utils.seed_new_connection(other_profile.key, self.org.key) # seed a connection between the profile and another org other_org = org_utils.seedOrganization(self.program.key()) connection_utils.seed_new_connection(self.profile.key, other_org.key) self.assertFalse( connection_logic.connectionExists(self.profile.key, self.org.key))
def testConnectionDoesNotExist(self): """Tests that False is returned if connection does not exist.""" # seed a connection between the org and another profile other_profile = profile_utils.seedNDBProfile(self.program.key()) connection_utils.seed_new_connection(other_profile.key, self.org.key) # seed a connection between the profile and another org other_org = org_utils.seedOrganization(self.program.key()) connection_utils.seed_new_connection(self.profile.key, other_org.key) self.assertFalse( connection_logic.connectionExists(self.profile.key, self.org.key))
def testConnectionExists(self): """Tests that True is returned if connection does exist.""" # seed a connection connection_utils.seed_new_connection(self.profile.key, self.org.key) self.assertTrue( connection_logic.connectionExists(self.profile.key, self.org.key))
def testConnectionExists(self): """Tests that True is returned if connection does exist.""" # seed a connection connection_utils.seed_new_connection(self.profile.key, self.org.key) self.assertTrue( connection_logic.connectionExists(self.profile.key, self.org.key))