'runserver.check_migrations() doesn\'t choke when a database is read-only.'

def test_readonly_database(self):

    with mock.patch.object(MigrationRecorder, 'has_table', return_value=False):
        self.cmd.check_migrations()
    self.assertIn('unapplied    migration(s)', self.output.getvalue())
