def test_and(self):
        actual = _expand_money_args(ModelWithNonMoneyField(), [Q(money=Money(0, 'USD'), desc='foo')])

        assert len(actual) == 1
        arg = actual[0]

        assert isinstance(arg, Q)
        assert arg.connector == Q.AND
        assert len(arg.children) == 2

        # Can't guarantee the ordering of children, thus;
        for child in arg.children:
            if isinstance(child, tuple):
                assert ('desc', 'foo') == child
            elif isinstance(child, Q):
                assert child.connector == Q.AND
                assert len(child.children) == 2
                assert_leafs(child.children)
            else:
                pytest.fail('There should only be two elements, a tuple and a Q - not a %s' % child)
Test setting a repo to private.
dataset/ETHPy150Open django-money/django-money/tests/test_managers.py/TestExpandMoneyArgs.test_and--crossover with--dataset/ETHPy150Open dustin/py-github/github/githubtest.py/RepoTest.testSetPrivate