'Test the addition and retrieval of a trader identity in the database'

@blocking_call_on_reactor_thread
def test_add_get_trader_identity(self):

    self.database.add_trader_identity('a', '123', 1234)
    self.database.add_trader_identity('b', '124', 1235)
    traders = self.database.get_traders()
    self.assertEqual(len(traders), 2)
    self.assertEqual(traders, [('a', '123', 1234), ('b', '124', 1235)])
