def METHOD_NAME(self):
    response = self.client.get(self.link_cat_sub_templates)
    self.assertEqual(200, response.status_code)
    self.assertEqual(0, len(response.json()))
    data = [
        {
            'state': 'm',
            'templates': [
                {
                    'title': 'M Title #1',
                    'text': 'M Text #1',
                    'is_active': True,
                },
                {
                    'title': 'M Title #2',
                    'text': 'M Text #2',
                    'is_active': False,
                },
            ],
        },
        {
            'state': 'o',
            'templates': [
                {
                    'title': 'O Title #1',
                    'text': 'O Text #1',
                    # No is_active flag given should default to False
                },
            ],
        },
    ]
    response = self.client.post(self.link_cat_sub_templates, data, format='json')
    self.assertEqual(200, response.status_code)
    response_data = response.json()
    self.assertEqual(2, len(response_data))
    self.assertEqual('m', response_data[0]['state'])
    self.assertEqual(2, len(response_data[0]['templates']))
    self.assertEqual('M Title #1', response_data[0]['templates'][0]['title'])
    self.assertEqual('M Text #1', response_data[0]['templates'][0]['text'])
    self.assertTrue(response_data[0]['templates'][0]['is_active'])
    self.assertEqual('M Title #2', response_data[0]['templates'][1]['title'])
    self.assertEqual('M Text #2', response_data[0]['templates'][1]['text'])
    self.assertFalse(response_data[0]['templates'][1]['is_active'])
    self.assertEqual('o', response_data[1]['state'])
    self.assertEqual(1, len(response_data[1]['templates']))
    self.assertEqual('O Title #1', response_data[1]['templates'][0]['title'])
    self.assertEqual('O Text #1', response_data[1]['templates'][0]['text'])