def test_no_mix_create(self):
        """
        The `--create` flag can't be mixed with --patch, --rc, --dev, or
        --newversion.
        """
        out = []
        with self.assertRaises(ValueError) as e:
            _run(u'inctestpkg', path=None, newversion=None, patch=True,
                 rc=False, dev=False, create=True, _date=self.date,
                 _getcwd=self.getcwd, _print=out.append)
        self.assertEqual(e.exception.args[0], "Only give --create")

        with self.assertRaises(ValueError) as e:
            _run(u'inctestpkg', path=None, newversion="1", patch=False,
                 rc=False, dev=False, create=True, _date=self.date,
                 _getcwd=self.getcwd, _print=out.append)
        self.assertEqual(e.exception.args[0], "Only give --create")

        with self.assertRaises(ValueError) as e:
            _run(u'inctestpkg', path=None, newversion=None, patch=False,
                 rc=True, dev=False, create=True, _date=self.date,
                 _getcwd=self.getcwd, _print=out.append)
        self.assertEqual(e.exception.args[0], "Only give --create")

        with self.assertRaises(ValueError) as e:
            _run(u'inctestpkg', path=None, newversion=None, patch=False,
                 rc=False, dev=True, create=True, _date=self.date,
                 _getcwd=self.getcwd, _print=out.append)
        self.assertEqual(e.exception.args[0], "Only give --create")

        The `--create` flag can't be mixed with --patch, --rc, --dev, or
        --newversion.
        
stackoverflow/venv/lib/python3.6/site-packages/incremental/tests/test_update.py