#NEWLINE# def test_create( self ) : #NEWLINE# #INDENT# fn = random_string ( ) #NEWLINE# ln = random_string ( ) #NEWLINE# email = ( random_string ( ) + '@example.com' ) #NEWLINE# contractor = bool ( random . getrandbits ( 1 ) ) #NEWLINE# admin = bool ( random . getrandbits ( 1 ) ) #NEWLINE# department = random_string ( ) #NEWLINE# default_rate = ( random . random ( ) * 10 ) #NEWLINE# person = self . hv . create_person ( fn , ln , email , contractor = contractor , admin = admin , department = department , default_rate = default_rate ) #NEWLINE# self . assertIsNotNone ( person ) #NEWLINE# self . assertIsNotNone ( person ) #NEWLINE# self . assertIsNotNone ( person . id ) #NEWLINE# self . assertIsNotNone ( person . email ) #NEWLINE# self . assertEqual ( person . email , email ) #NEWLINE# self . assertIsNotNone ( person . first_name ) #NEWLINE# self . assertEqual ( person . first_name , fn ) #NEWLINE# self . assertIsNotNone ( person . last_name ) #NEWLINE# self . assertEqual ( person . last_name , ln ) #NEWLINE# self . assertIsNotNone ( person . all_future ) #NEWLINE# self . assertIsNotNone ( person . active ) #NEWLINE# self . assertIsNotNone ( person . admin ) #NEWLINE# self . assertEqual ( person . admin , admin ) #NEWLINE# self . assertIsNotNone ( person . contractor ) #NEWLINE# self . assertEqual ( person . contractor , contractor ) #NEWLINE# self . assertIsNotNone ( person . telephone ) #NEWLINE# self . assertIsNotNone ( person . timezone ) #NEWLINE# person . delete ( )