'rebuild_index passes --using to clear_index and update_index'

@patch(u'haystack.loading.ConnectionHandler.__getitem__')
@patch(u'haystack.management.commands.update_index.Command.update_backend')
def test_rebuild_index_using(self, m1, m2):

    call_command(u'rebuild_index', verbosity=0, interactive=False, using=[u'eng'])
    m2.assert_called_with(u'eng')
    m1.assert_any_call(u'core', u'eng')
