'Test that if you skip and specify the same course, you\'ll skip it.'

@mock.patch(u'openedx.core.djangoapps.coursegraph.tasks.NodeSelector')
@mock.patch(u'openedx.core.djangoapps.coursegraph.tasks.Graph')
def test_dump_skip_beats_specifying(self, mock_graph_class, mock_selector_class):

    mock_graph = self.setup_mock_graph(mock_selector_class, mock_graph_class)
    call_command(u'dump_to_neo4j', skip=self.course_strings[:1], courses=self.course_strings[:1], host=u'mock_host', http_port=7474, user=u'mock_user', password=u'mock_password')
    self.assertCourseDump(mock_graph, number_of_courses=0, number_commits=0, number_rollbacks=0)
