<s> import unittest <EOL> import datetime <EOL> import uuid <EOL> import sys <EOL> import json <EOL> import sys , os , os . path <EOL> root_directory = os . path . join ( os . path . dirname ( os . path . realpath ( __file__ ) ) , '<STR_LIT:..>' , '<STR_LIT:..>' , '<STR_LIT:..>' , '<STR_LIT:..>' ) <EOL> if root_directory not in sys . path : <EOL> sys . path . append ( root_directory ) <EOL> from applicationinsights . channel . contracts import * <EOL> from . Utils import TestJsonEncoder <EOL> class TestUser ( unittest . TestCase ) : <EOL> def test_construct ( self ) : <EOL> item = User ( ) <EOL> self . assertNotEqual ( item , None ) <EOL> def test_account_acquisition_date_property_works_as_expected ( self ) : <EOL> expected = '<STR_LIT>' <EOL> item = User ( ) <EOL> item . account_acquisition_date = expected <EOL> actual = item . account_acquisition_date <EOL> self . assertEqual ( expected , actual ) <EOL> expected = '<STR_LIT>' <EOL> item . account_acquisition_date = expected <EOL> actual = item . account_acquisition_date <EOL> self . assertEqual ( expected , actual ) <EOL> def test_account_id_property_works_as_expected ( self ) : <EOL> expected = '<STR_LIT>' <EOL> item = User ( ) <EOL> item . account_id = expected <EOL> actual = item . account_id <EOL> self . assertEqual ( expected , actual ) <EOL> expected = '<STR_LIT>' <EOL> item . account_id = expected <EOL> actual = item . account_id <EOL> self . assertEqual ( expected , actual ) <EOL> def test_user_agent_property_works_as_expected ( self ) : <EOL> expected = '<STR_LIT>' <EOL> item = User ( ) <EOL> item . user_agent = expected <EOL> actual = item . user_agent <EOL> self . assertEqual ( expected , actual ) <EOL> expected = '<STR_LIT>' <EOL> item . user_agent = expected <EOL> actual = item . user_agent <EOL> self . assertEqual ( expected , actual ) <EOL> def test_id_property_works_as_expected ( self ) : <EOL> expected = '<STR_LIT>' <EOL> item = User ( ) <EOL> item . id = expected <EOL> actual = item . id <EOL> self . assertEqual ( expected , actual ) <EOL> expected = '<STR_LIT>' <EOL> item . id = expected <EOL> actual = item . id <EOL> self . assertEqual ( expected , actual ) <EOL> def test_serialize_works_as_expected ( self ) : <EOL> item = User ( ) <EOL> item . account_acquisition_date = '<STR_LIT>' <EOL> item . account_id = '<STR_LIT>' <EOL> item . user_agent = '<STR_LIT>' <EOL> item . id = '<STR_LIT>' <EOL> actual = json . dumps ( item . write ( ) , separators = ( '<STR_LIT:U+002C>' , '<STR_LIT::>' ) , cls = TestJsonEncoder ) <EOL> expected = '<STR_LIT>' <EOL> self . assertEqual ( expected , actual ) </s>
