def test_sort_1(self):
        with patch('student_management_system.open', self.m_open1):
            sms = StudentManagementSystem()
            sms.read('score.csv')

            result = sms.sort(order_key="register", order_way="asc")
            self.assertEqual('1,강호민,85,90,95,270,90', result)
    def test_sort_5(self):
        with patch('student_management_system.open', self.m_open2):
            sms = StudentManagementSystem()
            sms.read('score.csv')

            result = sms.sort("stotal", "des")
            self.assertEqual('1,강호민,85,90,95,270,90\n2,김광호,80,70,60,210,70',
                             result)
    def test_sort_3(self):
        with patch('student_management_system.open', self.m_open2):
            sms = StudentManagementSystem()
            sms.read('score.csv')

            result = sms.sort(order_key="register", order_way="des")
            self.assertEqual('2,김광호,80,70,60,210,70\n1,강호민,85,90,95,270,90',
                             result)