Esempio n. 1
0
    def test_batch_class_name(self):
        type_str = ":class:`ComputeNodeFillType<azure.batch.models.ComputeNodeFillType>`"
        self.assertEqual(_command_type.class_name(type_str),
                         "azure.batch.models.ComputeNodeFillType")

        type_str = "str or :class:`ComputeNodeFillType<azure.batch.models.ComputeNodeFillType>`"
        self.assertEqual(_command_type.class_name(type_str),
                         "azure.batch.models.ComputeNodeFillType")
    def test_batch_class_name(self):
        type_str = "~azure.batch.models.ComputeNodeFillType"
        self.assertEqual(_command_type.class_name(type_str),
                         "azure.batch.models.ComputeNodeFillType")

        type_str = "str or ~azure.batch.models.ComputeNodeFillType"
        self.assertEqual(_command_type.class_name(type_str),
                         "azure.batch.models.ComputeNodeFillType")