#NEWLINE# def test_create_protect_stop_date( self ) : #NEWLINE# #INDENT# '\n        Test that a ProtectStopDate attribute can be created.\n        ' #NEWLINE# date = self . factory . create_attribute_value ( enums . AttributeType . PROTECT_STOP_DATE , 0 ) #NEWLINE# self . assertIsInstance ( date , primitives . DateTime ) #NEWLINE# self . assertEqual ( 0 , date . value ) #NEWLINE# self . assertEqual ( enums . Tags . PROTECT_STOP_DATE , date . tag )