Module Expr Str Import alias Import alias Import alias Import alias Assign SubscriptStore AttributeLoad NameLoad attr Slice Num Num ListLoad Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num keyword NameLoad Assign NameStore Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num keyword NameLoad Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr For NameStore ListLoad Num Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr CompareNotEq NameLoad Call NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num Num Call NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num Num Call NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num Num Call NameLoad Call NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for the Timestamp class. N/A datetime N/A sys N/A copy N/A pickle N/A N/A N/A sys path N/A 0 0 N/A bson.timestamp Timestamp bson.tz_util utc test unittest TestTimestamp N/A N/A unittest TestCase N/A test_timestamp N/A N/A self N/A N/A N/A t N/A Timestamp 123 456 N/A N/A N/A self assertEqual N/A t time 123 N/A N/A N/A self assertEqual N/A t inc 456 N/A N/A N/A self assertTrue N/A isinstance t Timestamp N/A test_datetime N/A N/A self N/A N/A N/A d N/A N/A datetime datetime 2010 5 5 tzinfo utc N/A t N/A Timestamp d 0 N/A N/A N/A self assertEqual 1273017600 N/A t time N/A N/A N/A self assertEqual d N/A N/A t as_datetime N/A test_datetime_copy_pickle N/A N/A self N/A N/A N/A d N/A N/A datetime datetime 2010 5 5 tzinfo utc N/A t N/A Timestamp d 0 N/A dc N/A N/A copy deepcopy d N/A N/A N/A self assertEqual dc N/A N/A t as_datetime N/A protocol N/A 0 1 2 -1 N/A N/A pkl N/A N/A pickle dumps d protocol protocol N/A dp N/A N/A pickle loads pkl N/A N/A N/A self assertEqual dp N/A N/A t as_datetime N/A test_exceptions N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError Timestamp N/A N/A N/A self assertRaises TypeError Timestamp None 123 N/A N/A N/A self assertRaises TypeError Timestamp 1.2 123 N/A N/A N/A self assertRaises TypeError Timestamp 123 None N/A N/A N/A self assertRaises TypeError Timestamp 123 1.2 N/A N/A N/A self assertRaises ValueError Timestamp 0 -1 N/A N/A N/A self assertRaises ValueError Timestamp -1 0 N/A N/A N/A self assertTrue N/A Timestamp 0 0 N/A test_equality N/A N/A self N/A N/A N/A t N/A Timestamp 1 1 N/A N/A N/A self assertNotEqual t N/A Timestamp 0 1 N/A N/A N/A self assertNotEqual t N/A Timestamp 1 0 N/A N/A N/A self assertEqual t N/A Timestamp 1 1 N/A N/A N/A self assertFalse N/A t N/A Timestamp 1 1 N/A test_hash N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A hash N/A Timestamp 1 2 N/A hash N/A Timestamp 1 2 N/A N/A N/A self assertNotEqual N/A hash N/A Timestamp 1 2 N/A hash N/A Timestamp 1 3 N/A N/A N/A self assertNotEqual N/A hash N/A Timestamp 1 2 N/A hash N/A Timestamp 2 2 N/A test_repr N/A N/A self N/A N/A N/A t N/A Timestamp 0 0 N/A N/A N/A self assertEqual N/A repr t Timestamp(0, 0) N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main