'Tests that a basic usage works as expected'

def test_io_success(self):

    k1 = uuid4()
    k2 = uuid4()
    now = datetime.now()
    then = (now + timedelta(days=1))
    m1 = TestMapModel.create(int_map={1: k1, 2: k2}, text_map={'now': now, 'then': then})
    m2 = TestMapModel.get(partition=m1.partition)
    self.assertTrue(isinstance(m2.int_map, dict))
    self.assertTrue(isinstance(m2.text_map, dict))
    self.assertTrue((1 in m2.int_map))
    self.assertTrue((2 in m2.int_map))
    self.assertEqual(m2.int_map[1], k1)
    self.assertEqual(m2.int_map[2], k2)
    self.assertAlmostEqual(get_total_seconds((now - m2.text_map['now'])), 0, 2)
    self.assertAlmostEqual(get_total_seconds((then - m2.text_map['then'])), 0, 2)
