<s> from tests . base import OsfTestCase <EOL> from tests . factories import UserFactory <EOL> from nose . tools import * <EOL> from scripts . migration . migrate_none_as_email_verification import main as do_migration <EOL> class TestMigrateDates ( OsfTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( TestMigrateDates , self ) . setUp ( ) <EOL> self . user1 = UserFactory ( email_verfications = None ) <EOL> self . user2 = UserFactory ( email_verfications = { } ) <EOL> def test_migrate_none_as_email ( self ) : <EOL> do_migration ( ) <EOL> assert_equal ( self . user1 . email_verifications , { } ) <EOL> assert_not_equal ( self . user2 . email_verifications , None ) </s>
