def test_check_has_children(self):
        """Test the check_has_children function."""
        a_dir = self.vgw.make_subdirectory(
            self.root.id, StorageObject.DIRECTORY)
        self.assertTrue(
            self.vgw.check_has_children(self.root.id, StorageObject.FILE))
        self.assertTrue(
            self.vgw.check_has_children(self.root.id, StorageObject.DIRECTORY))
        self.vgw.delete_node(self.file.id)
        self.assertFalse(
            self.vgw.check_has_children(self.root.id, StorageObject.FILE))
        self.assertTrue(
            self.vgw.check_has_children(self.root.id, StorageObject.DIRECTORY))
        self.vgw.delete_node(a_dir.id)
        self.assertFalse(
            self.vgw.check_has_children(self.root.id, StorageObject.FILE))
        self.assertFalse(
            self.vgw.check_has_children(self.root.id, StorageObject.DIRECTORY))