def test_deconstruct_kwargs_kept(self):
    instance = TaggableManager(through=OfficialThroughModel, to='dummy.To')
    (name, path, args, kwargs) = instance.deconstruct()
    new_instance = TaggableManager(*args, **kwargs)
    self.assertEqual('tests.OfficialThroughModel', new_instance.rel.through)
    self.assertEqual('dummy.To', new_instance.rel.to)
def test_deconstruct_kwargs_kept(self):
    instance = TaggableManager(through=OfficialThroughModel, to='dummy.To')
    (name, path, args, kwargs) = instance.deconstruct()
    new_instance = TaggableManager(*args, **kwargs)
    self.assertEqual('tests.OfficialThroughModel', new_instance.rel.through)
    self.assertEqual('dummy.To', new_instance.rel.to)