def test_user_notification_model_fields(self): # pylint: disable=C0103 """ Test to check that the SQLUserNotification Model has all the fields (names) of the SQLUserNotificationArchive model. """ user_notification = SQLUserNotification() user_notification_archive = SQLUserNotificationArchive() for archive_attr in user_notification_archive.__dict__.keys(): self.assertIn(archive_attr, user_notification.__dict__.keys())
def test_archive_user_notification_model_fields(self): # pylint: disable=C0103 """ Test to check that the SQLUserNotificationArchive Model has all the fields (names) of the SQLUserNotification model. """ user_notification_orig = SQLUserNotification() user_notification_archive = SQLUserNotificationArchive() for orig_attr in user_notification_orig.__dict__: self.assertIn(orig_attr, list(user_notification_archive.__dict__.keys()))
def test_archive_user_notification_model_has_all_fields_of_user_notification_model( self): """ Test to check that the SQLUserNotificationArchive Model has all the fields (names) of the SQLUserNotification model. """ user_notification_orig = SQLUserNotification() user_notification_archive = SQLUserNotificationArchive() for orig_attr in user_notification_orig.__dict__.keys(): self.assertIn(orig_attr, user_notification_archive.__dict__.keys())