def test_corpus_uteri_sarcomas_cancer_IIIC(self): self.assertEquals( 'IIIC', tnm_stage('C54.0', 'T1', 'N1', 'M0', '', '', '', 'S')) self.assertEquals( 'IIIC', tnm_stage('C54.0', 'T2', 'N1', 'M0', '', '', '', 'S')) self.assertEquals( 'IIIC', tnm_stage('C54.0', 'T3', 'N1', 'M0', '', '', '', 'S'))
def test_corpus_uteri_sarcomas_cancer_IVA(self): self.assertEquals( 'IVA', tnm_stage('C54.0', 'T4', 'N0', 'M0', '', '', '', 'S')) self.assertEquals( 'IVA', tnm_stage('C54.0', 'T4', 'N1', 'M0', '', '', '', 'S')) self.assertEquals( 'IVA', tnm_stage('C54.0', 'T4', 'N2', 'M0', '', '', '', 'S'))
def test_colon_cancer_IIIA(self): self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1', 'M0', 'C')) self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1', 'M0', 'C')) self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1a', 'M0', 'C')) self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1a', 'M0', 'C')) self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1b', 'M0', 'C')) self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1b', 'M0', 'C')) self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1c', 'M0', 'C')) self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1c', 'M0', 'C')) self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N2a', 'M0', 'C'))
def test_lung_cancer_IIIA(self): self.assertEquals('IIIA', tnm_stage('C34.0', 'T1a', 'N2', 'M0')) self.assertEquals('IIIA', tnm_stage('C34.0', 'T1b', 'N2', 'M0')) self.assertEquals('IIIA', tnm_stage('C34.0', 'T2a', 'N2', 'M0')) self.assertEquals('IIIA', tnm_stage('C34.0', 'T2b', 'N2', 'M0')) self.assertEquals('IIIA', tnm_stage('C34.0', 'T3', 'N1', 'M0')) self.assertEquals('IIIA', tnm_stage('C34.0', 'T3', 'N2', 'M0')) self.assertEquals('IIIA', tnm_stage('C34.0', 'T4', 'N0', 'M0')) self.assertEquals('IIIA', tnm_stage('C34.0', 'T4', 'N1', 'M0'))
def test_lung_cancer_IB(self): self.assertEquals('IB', tnm_stage('C34.0', 'T2a', 'N0', 'M0'))
def test_stomach_cancer_0(self): self.assertEquals('0', tnm_stage('C16.9', 'Tis', 'N0', 'M0'))
def test_stomach_cancer_IIIC(self): self.assertEquals('IIIC', tnm_stage('C16.9', 'T4b', 'N2', 'M0')) self.assertEquals('IIIC', tnm_stage('C16.9', 'T4b', 'N3', 'M0')) self.assertEquals('IIIC', tnm_stage('C16.9', 'T4a', 'N3', 'M0'))
def test_breast_cancer_IV(self): self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T0', 'N1mi', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N1mi', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T0', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T0', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T4', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T4', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T4', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'Tis', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N3', 'M1'))
def test_breast_cancer_IB(self): self.assertEquals('IB', tnm_stage('C50.0', 'T0', 'N1mi', 'M0')) self.assertEquals('IB', tnm_stage('C50.0', 'T1', 'N1mi', 'M0'))
def test_cervix_uteri_cancer_IVA(self): self.assertEquals('IVA', tnm_stage('C53.0', 'T4', 'N0', 'M0')) self.assertEquals('IVA', tnm_stage('C53.0', 'T4', 'N1', 'M0'))
def test_corpus_uteri_sarcomas_cancer_IIIC(self): self.assertEquals('IIIC', tnm_stage('C54.0', 'T1', 'N1', 'M0', '', '', '', 'S')) self.assertEquals('IIIC', tnm_stage('C54.0', 'T2', 'N1', 'M0', '', '', '', 'S')) self.assertEquals('IIIC', tnm_stage('C54.0', 'T3', 'N1', 'M0', '', '', '', 'S'))
def test_cervix_uteri_cancer_0(self): self.assertEquals('0', tnm_stage('C53.0', 'Tis', 'N0', 'M0'))
def test_cervix_uteri_cancer_IVB(self): self.assertEquals('IVB', tnm_stage('C53.0', 'Tis', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T1', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T1a', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T1a1', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T1a2', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T1b', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T1b1', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T1b2', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T2', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T2a', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T2a1', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T2a2', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T2b', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T3', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T3a', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T3b', 'N0', 'M1')) self.assertEquals('IVB', tnm_stage('C53.0', 'T4', 'N0', 'M1'))
def test_cervix_uteri_cancer_IIIB(self): self.assertEquals('IIIB', tnm_stage('C53.0', 'T3b', 'N0', 'M0')) self.assertEquals('IIIB', tnm_stage('C53.0', 'T3b', 'N1', 'M0')) self.assertEquals('IIIB', tnm_stage('C53.0', 'T1', 'N1', 'M0')) self.assertEquals('IIIB', tnm_stage('C53.0', 'T2', 'N1', 'M0')) self.assertEquals('IIIB', tnm_stage('C53.0', 'T3', 'N1', 'M0'))
def test_breast_cancer_IA(self): self.assertEquals('IA', tnm_stage('C50.0', 'T1', 'N0', 'M0'))
def test_breast_cancer_0(self): self.assertEquals('0', tnm_stage('C50.0', 'Tis', 'N0', 'M0'))
def test_stomach_cancer_IA(self): self.assertEquals('IA', tnm_stage('C16.9', 'T1', 'N0', 'M0'))
def test_lung_cancer_0(self): self.assertEquals('0', tnm_stage('C34.0', 'Tis', 'N0', 'M0'))
def test_stomach_cancer_IIB(self): self.assertEquals('IIB', tnm_stage('C16.9', 'T4a', 'N0', 'M0')) self.assertEquals('IIB', tnm_stage('C16.9', 'T3', 'N1', 'M0')) self.assertEquals('IIB', tnm_stage('C16.9', 'T2', 'N2', 'M0')) self.assertEquals('IIB', tnm_stage('C16.9', 'T1', 'N3', 'M0'))
def test_corpus_uteri_sarcomas_cancer_I(self): self.assertEquals('I', tnm_stage('C54.0', 'T1', 'N0', 'M0', '', '', '', 'S'))
def test_cervix_uteri_cancer_I(self): self.assertEquals('I', tnm_stage('C53.0', 'T1', 'N0', 'M0'))
def test_stomach_cancer_IV(self): self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N3', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N0', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N1', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N2', 'M1')) self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N3', 'M1'))
def test_breast_cancer_IIIA(self): self.assertEquals('IIIA', tnm_stage('C50.0', 'T0', 'N2', 'M0')) self.assertEquals('IIIA', tnm_stage('C50.0', 'T1', 'N2', 'M0')) self.assertEquals('IIIA', tnm_stage('C50.0', 'T2', 'N2', 'M0')) self.assertEquals('IIIA', tnm_stage('C50.0', 'T3', 'N1', 'M0')) self.assertEquals('IIIA', tnm_stage('C50.0', 'T3', 'N2', 'M0'))
def test_colon_cancer_0(self): self.assertEquals('0', tnm_stage('C18.0', 'Tis', 'N0', 'M0', ''))
def test_colon_cancer_I(self): self.assertEquals('I', tnm_stage('C18.0', 'T1', 'N0', 'M0', 'A')) self.assertEquals('I', tnm_stage('C18.0', 'T2', 'N0', 'M0', 'A'))
def test_colon_cancer_IIC(self): self.assertEquals('IIC', tnm_stage('C18.0', 'T4b', 'N0', 'M0', 'B'))
def test_lung_cancer_IIB(self): self.assertEquals('IIB', tnm_stage('C34.0', 'T2b', 'N1', 'M0')) self.assertEquals('IIB', tnm_stage('C34.0', 'T3', 'N0', 'M0'))
def test_breast_cancer_IIIB(self): self.assertEquals('IIIB', tnm_stage('C50.0', 'T4', 'N0', 'M0')) self.assertEquals('IIIB', tnm_stage('C50.0', 'T4', 'N1', 'M0')) self.assertEquals('IIIB', tnm_stage('C50.0', 'T4', 'N2', 'M0'))
def test_lung_cancer_IV(self): self.assertEquals('IV', tnm_stage('C34.0', 'Tis', 'N0', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N0', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N0', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N0', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N0', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N1', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N1', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N1', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N1', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N0', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N2', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N2', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N2', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N2', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N1', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N2', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N0', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N1', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N3', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N3', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N3', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N3', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N3', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N2', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N3', 'M1a')) self.assertEquals('IV', tnm_stage('C34.0', 'Tis', 'N0', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N0', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N0', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N0', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N0', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N1', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N1', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N1', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N1', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N0', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N2', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N2', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N2', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N2', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N1', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N2', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N0', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N1', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N3', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N3', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N3', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N3', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N3', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N2', 'M1b')) self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N3', 'M1b'))
def test_colon_cancer_IIIC(self): self.assertEquals('IIIC', tnm_stage('C18.0', 'T4a', 'N2a', 'M0', 'C')) self.assertEquals('IIIC', tnm_stage('C18.0', 'T3', 'N2b', 'M0', 'C')) self.assertEquals('IIIC', tnm_stage('C18.0', 'T4a', 'N2b', 'M0', 'C')) self.assertEquals('IIIC', tnm_stage('C18.0', 'T4b', 'N1', 'M0', 'C')) self.assertEquals('IIIC', tnm_stage('C18.0', 'T4b', 'N2', 'M0', 'C'))
def test_lung_cancer_IA(self): self.assertEquals('IA', tnm_stage('C34.0', 'T1a', 'N0', 'M0')) self.assertEquals('IA', tnm_stage('C34.0', 'T1b', 'N0', 'M0'))
def test_colon_cancer_IVA(self): self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N0', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1c', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2b', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2a', 'M1a', '')) self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2a', 'M1a', ''))
def test_corpus_uteri_sarcomas_cancer_IVB(self): self.assertEquals('IVB', tnm_stage('C54.0', 'T1', 'N0', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1a', 'N0', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1b', 'N0', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1c', 'N0', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T2', 'N0', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T3', 'N0', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T3a', 'N0', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T3b', 'N0', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T4', 'N0', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1', 'N1', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1a', 'N1', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1b', 'N1', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1c', 'N1', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T2', 'N1', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T3', 'N1', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T3a', 'N1', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T3b', 'N1', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T4', 'N1', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1', 'N2', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1a', 'N2', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1b', 'N2', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T1c', 'N2', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T2', 'N2', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T3', 'N2', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T3a', 'N2', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T3b', 'N2', 'M1', '', '', '', 'S')) self.assertEquals('IVB', tnm_stage('C54.0', 'T4', 'N2', 'M1', '', '', '', 'S'))
def test_corpus_uteri_carcinomas_cancer_IIIA(self): self.assertEquals('IIIA', tnm_stage('C54.0', 'T3a', 'N0', 'M0', '', '', '', 'C'))
def test_corpus_uteri_sarcomas_cancer_IVB(self): self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1', 'N0', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1a', 'N0', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1b', 'N0', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1c', 'N0', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T2', 'N0', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T3', 'N0', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T3a', 'N0', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T3b', 'N0', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T4', 'N0', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1', 'N1', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1a', 'N1', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1b', 'N1', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1c', 'N1', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T2', 'N1', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T3', 'N1', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T3a', 'N1', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T3b', 'N1', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T4', 'N1', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1', 'N2', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1a', 'N2', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1b', 'N2', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T1c', 'N2', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T2', 'N2', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T3', 'N2', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T3a', 'N2', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T3b', 'N2', 'M1', '', '', '', 'S')) self.assertEquals( 'IVB', tnm_stage('C54.0', 'T4', 'N2', 'M1', '', '', '', 'S'))
def test_corpus_uteri_sarcomas_cancer_IIIB(self): self.assertEquals( 'IIIB', tnm_stage('C54.0', 'T3b', 'N0', 'M0', '', '', '', 'S'))
def test_corpus_uteri_carcinomas_cancer_IIIB(self): self.assertEquals('IIIB', tnm_stage('C54.0', 'T3b', 'N0', 'M0', '', '', '', 'C'))
def test_breast_cancer_IIIC(self): self.assertEquals('IIIC', tnm_stage('C50.0', 'Tis', 'N3', 'M0')) self.assertEquals('IIIC', tnm_stage('C50.0', 'T1', 'N3', 'M0')) self.assertEquals('IIIC', tnm_stage('C50.0', 'T2', 'N3', 'M0')) self.assertEquals('IIIC', tnm_stage('C50.0', 'T3', 'N3', 'M0'))
def test_corpus_uteri_carcinomas_cancer_IIIC2(self): self.assertEquals('IIIC2', tnm_stage('C54.0', 'T1', 'N2', 'M0', '', '', '', 'C')) self.assertEquals('IIIC2', tnm_stage('C54.0', 'T2', 'N2', 'M0', '', '', '', 'C')) self.assertEquals('IIIC2', tnm_stage('C54.0', 'T3', 'N2', 'M0', '', '', '', 'C'))
def test_corpus_uteri_carcinomas_cancer_IVA(self): self.assertEquals('IVA', tnm_stage('C54.0', 'T4', 'N0', 'M0', '', '', '', 'C')) self.assertEquals('IVA', tnm_stage('C54.0', 'T4', 'N1', 'M0', '', '', '', 'C')) self.assertEquals('IVA', tnm_stage('C54.0', 'T4', 'N2', 'M0', '', '', '', 'C'))
def test_corpus_uteri_carcinomas_cancer_0(self): self.assertEquals('0', tnm_stage('C54.0', 'Tis', 'N0', 'M0', '', '', '', 'C'))