def test_sequence_too_big(self):
     with self.assertRaises(ClientException) as cm:
         seq_list = SequenceList('1234')
         seq_list.content = make_too_big()
         seq_list.title = 'Too big list'
         seq_list.insert(db=FakeDB())
     self.assertEqual(ErrorType.UPLOADED_DATA_TOO_BIG,
                      cm.exception.error_type)
     self.assertEqual(400, cm.exception.status_code)
 def test_sequence_good_size(self):
     seq_list = SequenceList('1234')
     seq_list.content = "myseq>\nAACCGGTTAACCGTTTTTAACCTTGGG"
     seq_list.title = 'Good list'
     seq_list.insert(db=FakeDB())