'Tests that when one index is promoted, all others are demoted.'

def test_there_can_be_only_one(self):

    index1 = Index.objects.get_current()
    ok_(index1.promoted)
    index2 = Index.objects.create(name='second')
    index2.promote()
    index1 = self._reload(index1)
    ok_(index2.promoted)
    ok_((not index1.promoted))
