<commit_before>import unittest

from sections.sections import Circle
from tests.test_section import SectionTests

class CircleTests(unittest.TestCase, SectionTests):
    
    def setUp(self):
        self.r          = 3.0
        self.cls        = Circle
        self.dimensions = {"r":self.r}
        self.rp         = 5.0, 4.0
        self.A          = 28.274333882308138
        self._I0        = 63.61725123519331, 63.61725123519331, 0.0
        self._I         = self._I0
        self._cog       = 0.0, 0.0<commit_msg>Added test for Circle.check_dimensions<commit_after>import unittest

from sections.sections import Circle
from tests.test_section import SectionTests

class CircleTests(unittest.TestCase, SectionTests):
    
    def setUp(self):
        self.r          = 3.0
        self.cls        = Circle
        self.dimensions = {"r":self.r}
        self.rp         = 5.0, 4.0
        self.A          = 28.274333882308138
        self._I0        = 63.61725123519331, 63.61725123519331, 0.0
        self._I         = self._I0
        self._cog       = 0.0, 0.0
    
    
    def test_check_dimensions(self):
    	circle = Circle(r=1)
    	
    	self.assertRaises(ValueError, circle.set_dimensions, r=-1)
    	self.assertRaises(ValueError, circle.set_dimensions, r=0)
{'fraction_non_alphanumeric': 0.0947533281127643, 'fraction_numerical': 0.10101801096319499, 'mean_word_length': 1.8914027149321266, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3186828', 'n_tokens_mistral': 497, 'n_tokens_neox': 422, 'n_words': 82}