def test_verb_exists(self): self.assertTrue( helper.check_if_column_exist(self.cursor, 'endpoints', 'verb'))
def test_source_type_on_authtokens_dne(self): self.assertFalse( helper.check_if_column_exist(self.cursor, 'authtokens', 'source_type'))
def test_auth_on_users_does_not_exist(self): self.assertFalse( helper.check_if_column_exist(self.cursor, 'users', 'auth'))
def test_modaction_in_temporary_tables(self): self.assertTrue( helper.check_if_column_exist(self.cursor, 'temporary_bans', 'modaction_id'))
def test_response_hist_new_desc_dne(self): self.assertFalse( helper.check_if_column_exist(self.cursor, 'response_histories', 'new_desc'))
def test_password_digest_on_users_exists(self): self.assertTrue( helper.check_if_column_exist(self.cursor, 'users', 'password_digest'))
def test_updated_at_exists(self): self.assertTrue( helper.check_if_column_exist(self.cursor, 'endpoint_params', 'updated_at'))
def test_response_desc_dne(self): self.assertFalse( helper.check_if_column_exist(self.cursor, 'responses', 'description'))
def test_password_digest_on_users_does_not_exist(self): self.assertFalse( helper.check_if_column_exist(self.cursor, 'users', 'password_digest'))
def test_source_id_on_authtokens(self): self.assertTrue( helper.check_if_column_exist(self.cursor, 'authtokens', 'source_id') )
def test_new_verb_dne(self): self.assertFalse( helper.check_if_column_exist( self.cursor, 'endpoint_history', 'new_verb' ) )
def test_new_email_verified_exists(self): self.assertTrue( helper.check_if_column_exist(self.cursor, 'user_demographic_history', 'new_email_verified'))
def test_old_verb_exists(self): self.assertTrue( helper.check_if_column_exist( self.cursor, 'endpoint_history', 'old_verb' ) )
def test_response_hist_old_desc_exists(self): self.assertTrue( helper.check_if_column_exist(self.cursor, 'response_histories', 'old_desc'))
def test_old_email_verified_dne(self): self.assertFalse( helper.check_if_column_exist(self.cursor, 'user_demographic_history', 'old_email_verified'))