def test_findNextRank_NoRanksAvailable_Returns1(self): queenSolver = QueenSolver() availableRanks = deque() newRank = queenSolver.findNextRank(availableRanks) self.assertEqual(None, newRank)
def test_findNextRank_NoRanksPreviouslyChosen_Returns1(self): queenSolver = QueenSolver() availableRanks = deque ([1,2,3,4,5,6,7,8]) newRank = queenSolver.findNextRank(availableRanks) self.assertEqual(1, newRank) self.assertEqual(len(availableRanks), 7)
def test_findNextRank_NoRanksPreviouslyChosen_Returns1(self): queenSolver = QueenSolver() availableRanks = deque([1, 2, 3, 4, 5, 6, 7, 8]) newRank = queenSolver.findNextRank(availableRanks) self.assertEqual(1, newRank) self.assertEqual(len(availableRanks), 7)