'Tests that Tuples can be updated from none
@since 3.1
@jira_ticket PYTHON-306
@expected_result tuple is created as none, but upserted to contain values
@test_category object_mapper'

def test_blind_tuple_updates_from_none(self):

    m = TestTupleModel.create(int_tuple=None)
    expected = (1, 2, 3)
    m.int_tuple = expected
    m.save()
    m2 = TestTupleModel.get(partition=m.partition)
    self.assertEqual(m2.int_tuple, expected)
    TestTupleModel.objects(partition=m.partition).update(int_tuple=None)
    m3 = TestTupleModel.get(partition=m.partition)
    self.assertEqual(m3.int_tuple, None)
