'clear_index uses all keys when --using is not present'

@patch(u'haystack.loading.ConnectionHandler.__getitem__')
def test_clear_index_default_using(self, m):

    call_command(u'clear_index', verbosity=0, interactive=False)
    self.assertEqual(len(settings.HAYSTACK_CONNECTIONS), m.call_count)
    for k in settings.HAYSTACK_CONNECTIONS:
        self.assertTrue((call(k) in m.call_args_list))
