示例#1
0
    def test_generate_spin_id_data_array6(self):
        """Sixth test of the spin ID generation function.

        The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().
        """

        # The data.
        data = ['1', 'GLY', None, None]

        # The ID.
        id = mol_res_spin.generate_spin_id_data_array(data, res_num_col=1, res_name_col=2)

        # Test the string.
        self.assertEqual(id, ':1')
示例#2
0
    def test_generate_spin_id_data_array3(self):
        """Third test of the spin ID generation function.

        The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().
        """

        # The data.
        data = ['Ap4Aase', '234', 'NH']

        # The ID.
        id = mol_res_spin.generate_spin_id_data_array(data, mol_name_col=1, res_num_col=None, res_name_col=None, spin_num_col=2, spin_name_col=3)

        # Test the string.
        self.assertEqual(id, '#Ap4Aase@234')
示例#3
0
    def test_generate_spin_id_data_array5(self):
        """Fifth test of the spin ID generation function.

        The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().
        """

        # The data.
        data = ['Ap4Aase', '1', 'GLY', '234', 'NH']

        # The ID.
        id = mol_res_spin.generate_spin_id_data_array(data, mol_name_col=1, res_num_col=2, res_name_col=3, spin_num_col=4, spin_name_col=5)

        # Test the string.
        self.assertEqual(id, '#Ap4Aase:1@234')
示例#4
0
    def test_generate_spin_id_data_array2(self):
        """Second test of the spin ID generation function.

        The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().
        """

        # The data.
        data = ['1', 'GLY', '234', 'NH']

        # The ID.
        id = mol_res_spin.generate_spin_id_data_array(data, res_num_col=1, res_name_col=2, spin_num_col=3, spin_name_col=4)

        # Test the string.
        self.assertEqual(id, ':1@234')
示例#5
0
    def test_generate_spin_id_data_array6(self):
        """Sixth test of the spin ID generation function.

        The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().
        """

        # The data.
        data = ['1', 'GLY', None, None]

        # The ID.
        id = mol_res_spin.generate_spin_id_data_array(data,
                                                      res_num_col=1,
                                                      res_name_col=2)

        # Test the string.
        self.assertEqual(id, ':1')
示例#6
0
    def test_generate_spin_id_data_array4(self):
        """Fourth test of the spin ID generation function.

        The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().
        """

        # The data.
        data = ['Ap4Aase', '1', 'GLY']

        # The ID.
        id = mol_res_spin.generate_spin_id_data_array(data,
                                                      mol_name_col=1,
                                                      res_num_col=2,
                                                      res_name_col=3)

        # Test the string.
        self.assertEqual(id, '#Ap4Aase:1')
示例#7
0
    def test_generate_spin_id_data_array2(self):
        """Second test of the spin ID generation function.

        The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().
        """

        # The data.
        data = ['1', 'GLY', '234', 'NH']

        # The ID.
        id = mol_res_spin.generate_spin_id_data_array(data,
                                                      res_num_col=1,
                                                      res_name_col=2,
                                                      spin_num_col=3,
                                                      spin_name_col=4)

        # Test the string.
        self.assertEqual(id, ':1@234')
示例#8
0
    def test_generate_spin_id_data_array3(self):
        """Third test of the spin ID generation function.

        The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().
        """

        # The data.
        data = ['Ap4Aase', '234', 'NH']

        # The ID.
        id = mol_res_spin.generate_spin_id_data_array(data,
                                                      mol_name_col=1,
                                                      res_num_col=None,
                                                      res_name_col=None,
                                                      spin_num_col=2,
                                                      spin_name_col=3)

        # Test the string.
        self.assertEqual(id, '#Ap4Aase@234')